#-*-coding:utf-8-*-
from app import app
from app import db
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand

manager = Manager(app)
migrate = Migrate(app ,db)
manager.add_command('db', MigrateCommand)
db.create_all()

@manager.command
def runserver():
	app.run()

@manager.command
def debug():
	app.run(debug=True)

if __name__ =='__main__':
	manager.run()